package com.Lacia.emsserver.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Instant;

/**
 * @author 万里花
 * @date 2024/6/6 14:18
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class BmsClusterMonomerData {

    /**
     * 堆号
     */
    private Integer arrNum;

    /**
     * 簇号
     */
    private Integer cluNum;

    /**
     * 时间戳
     */
    @JsonFormat(shape = JsonFormat.Shape.NUMBER_INT)
    @JsonProperty("timestamp")
    private Instant timestamp;

    /**
     * 单体电压
     */
    private Double celVol;

    /**
     * 单体温度
     */
    private Double celTem;

    /**
     * 单体SOC
     */
    private Double celSoc;

    /**
     * 单体SOH
     */
    private Double celSoh;
}
